package cn.jinjimi.framework.pay;

/**
 * 支付结果
 *
 * @author Jinsen
 * @date 2015/7/6
 */
public class PayResult {
    public static final int CODE_SUCCESS = 0;
    public static final int CODE_ERROR = -1;
    public static final int CODE_CANCEL = -2;

    /**
     * 支付结果
     */
    private final int result;

    private final String message;

    private final int payType;

    private final String returnUrl;

    public PayResult(int result, String msg, int payType, String returnUrl) {
        this.result = result;
        this.message = msg;
        this.payType = payType;
        this.returnUrl = returnUrl;
    }

    public PayResult(int result, String msg, int payType){
        this(result, msg, payType, null);
    }

    public int getResult() {
        return result;
    }

    public String getMessage() {
        return message;
    }

    public int getPayType() {
        return payType;
    }

    public String getReturnUrl(){
        return returnUrl;
    }

}
